import request from '@/utils/request'

// 查询今日头条热搜列表
export function listJinrihot(query) {
  return request({
    url: '/system/jinrihot/list',
    method: 'get',
    params: query
  })
}

// 查询今日头条热搜详细
export function getJinrihot(id) {
  return request({
    url: '/system/jinrihot/' + id,
    method: 'get'
  })
}

// 新增今日头条热搜
export function addJinrihot(data) {
  return request({
    url: '/system/jinrihot',
    method: 'post',
    data: data
  })
}

// 修改今日头条热搜
export function updateJinrihot(data) {
  return request({
    url: '/system/jinrihot',
    method: 'put',
    data: data
  })
}

// 删除今日头条热搜
export function delJinrihot(id) {
  return request({
    url: '/system/jinrihot/' + id,
    method: 'delete'
  })
}
